package com.rds.benchmark;

import com.rds.benchmark.config.ArgvsConfig;
import com.rds.benchmark.connector.Connector;
import com.rds.benchmark.state.SelectRun;

public class RdsBenchmark {

    public static void main(String[] argv) {
        try {
            //参数初始化
            ArgvsConfig.init(argv);
            //连接初始化
            Connector.getConnector();
            //选择运行的具体type
            SelectRun.runOperators();
        } catch (Throwable t) {
            System.out.println("Error occur: " + t);
            ArgvsConfig.Usage();
        }
    }
}
